import store from '../store'

let router = new VueRouter({
  mode: 'history',
  scrollBehavior() {
    return {
      x: 0,
      y: 0,
    }
  },
  routes: [
    {
      path: '*',
      redirect: '404',
    },
    {
      path: '/',
      name: 'test',
      component: () => import('../views/test'),
      meta: {
        keepAlive: false, // 不需要缓存
      },
    },
    {
      path: '/test',
      name: 'test',
      component: () => import('../views/test'),
      meta: {
        keepAlive: false, // 不需要缓存
      },
    }
  ],

})


export default router
